package com.Cychat.post.service;


import com.Cychat.commons.entity.pojo.Post;
import com.Cychat.post.entity.dto.PostDTO;
import com.Cychat.post.entity.vo.PostVO;
import com.baomidou.mybatisplus.extension.service.IService;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.List;

/**
 * @Auther: 崔航
 * @Date: 2025/10/28:14:26
 * @Description:
 */
public interface PostService extends IService<Post> {
    /**
     * 获取所有帖子
     * @return
     */
    public List<PostDTO> getAllPosts(Integer pageSize, Integer pageNum);

    public PostDTO getPostById(Integer postId, Long userId);

    public void addPost(PostVO post);
    String updateAvatar(MultipartFile file) throws IOException;

    List<PostDTO> getPostByUserId(Long userId);
    PostDTO like(Integer postId);

    public List<PostDTO> getPost();
}
